import request_app from "../request_app.js";

/* 获取活动信息 */
export const getactivity = (id) => {
	return request_app("vote/activity/"+id, {}, "get");
};
/* 活动列表 */
export const getactivitylist = (params) => {
	return request_app("vote/activity/list", params, "get");
};
/* 提交报名 */
export const application = (data) => {
	return request_app("vote/application", data, "post");
};
/* 报名修改 */
export const applicationEdit = (data) => {
	return request_app("vote/application", data, "put");
};
/* 报名列表i */
export const applicationList = (params) => {
	return request_app("vote/application/list", params, "get");
};
/* 投票 */
export const votesinfo = (data) => {
	return request_app("vote/votesinfo", data, "post");
};
/* 投票总数 */
export const votesinfoSum = (params) => {
	return request_app("vote/votesinfo/listSum", params, "get");
};
/* 活动报名详情 */
export const activityDetail = (params) => {
	return request_app("vote/application", params, "get");
};